<template>
  <div class="app-container">
    <el-form
      :model="queryParams"
      ref="queryForm"
      size="small"
      :inline="true"
      v-show="showSearch"
      label-width="68px"
    >
      <el-form-item label="订单号" prop="number">
        <el-input
          v-model="queryParams.number"
          placeholder="请输入订单号"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>

      <el-form-item label="门店" prop="shopId">
        <el-select
          v-model="queryParams.shopId"
          placeholder="请选择门店"
          clearable
          filterable
        >
          <el-option
            v-for="dict in shopList"
            :key="dict.shopId"
            :label="dict.shopName"
            :value="dict.shopId"
          />
        </el-select>
      </el-form-item>
      <el-form-item label="车辆" prop="carId">
        <el-select
          v-model="queryParams.carId"
          placeholder="请选择车辆"
          clearable
          filterable
        >
          <el-option
            v-for="dict in carList"
            :key="dict.id"
            :label="dict.carNumber ? dict.carNumber : dict.id"
            :value="dict.id"
          />
        </el-select>
      </el-form-item>
      <el-form-item label="用户" prop="userId">
        <el-select
          v-model="queryParams.userId"
          placeholder="请选择用户"
          clearable
          filterable
        >
          <el-option
            v-for="dict in userList"
            :key="dict.id"
            :label="dict.sysUser ? dict.sysUser.nickName + dict.id : dict.id"
            :value="dict.id"
          />
        </el-select>
      </el-form-item>
      <el-form-item label="服务类别" prop="serviceId">
        <el-select
          v-model="queryParams.serviceId"
          placeholder="请选择服务类别"
          clearable
          filterable
        >
          <el-option
            v-for="dict in dict.type.service_type"
            :key="dict.value"
            :label="dict.label"
            :value="dict.value"
          />
        </el-select>
      </el-form-item>
      <el-form-item label="总价" prop="totalPrice">
        <el-input
          style="width: 120px"
          v-model="price.beginTotalPrice"
          placeholder="最小值"
          clearable
          @keyup.enter.native="handleQuery"
          type="number"
          step="0.01"
          min="0"
        />
        <el-input
          style="width: 120px; margin-left: 2px"
          v-model="price.endTotalPrice"
          placeholder="最大值"
          clearable
          @keyup.enter.native="handleQuery"
          type="number"
          step="0.01"
          min="0"
        />
      </el-form-item>
      <el-form-item label="实付价格" prop="realPrice">
        <el-input
          style="width: 120px"
          v-model="price.beginRealPrice"
          placeholder="最小值"
          clearable
          @keyup.enter.native="handleQuery"
          type="number"
          step="0.01"
          min="0"
        />
        <el-input
          style="width: 120px; margin-left: 2px"
          v-model="price.endRealPrice"
          placeholder="最大值"
          clearable
          @keyup.enter.native="handleQuery"
          type="number"
          step="0.01"
          min="0"
        />
      </el-form-item>
      <el-form-item label="核销码" prop="verificationCode">
        <el-input
          v-model="queryParams.verificationCode"
          placeholder="请输入核销码"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="核销时间">
        <el-date-picker
          v-model="daterangeVerificationTime"
          style="width: 240px"
          value-format="yyyy-MM-dd"
          type="daterange"
          range-separator="-"
          start-placeholder="开始日期"
          end-placeholder="结束日期"
        ></el-date-picker>
      </el-form-item>
      <el-form-item label="预约时间">
        <el-date-picker
          v-model="daterangeSubscribeTime"
          style="width: 240px"
          value-format="yyyy-MM-dd"
          type="daterange"
          range-separator="-"
          start-placeholder="开始日期"
          end-placeholder="结束日期"
        ></el-date-picker>
      </el-form-item>
      <el-form-item label="下单时间">
        <el-date-picker
          v-model="daterangeCreateTime"
          style="width: 240px"
          value-format="yyyy-MM-dd"
          type="daterange"
          range-separator="-"
          start-placeholder="开始日期"
          end-placeholder="结束日期"
        ></el-date-picker>
      </el-form-item>
      <el-form-item label="状态" prop="state">
        <el-select
          v-model="queryParams.state"
          placeholder="请选择状态"
          clearable
        >
          <el-option
            v-for="dict in dict.type.order_status"
            :key="dict.value"
            :label="dict.label"
            :value="dict.value"
          />
        </el-select>
      </el-form-item>
      <el-form-item>
        <el-button
          type="primary"
          icon="el-icon-search"
          size="mini"
          @click="handleQuery"
          >搜索</el-button
        >
        <el-button icon="el-icon-refresh" size="mini" @click="resetQuery"
          >重置</el-button
        >
      </el-form-item>
    </el-form>

    <el-row :gutter="10" class="mb8">
      <el-col :span="1.5">
        <el-button
          type="primary"
          plain
          icon="el-icon-plus"
          size="mini"
          @click="handleAdd"
          v-hasPermi="['order:order:add']"
          >新增</el-button
        >
      </el-col>
      <el-col :span="1.5">
        <el-button
          type="success"
          plain
          icon="el-icon-edit"
          size="mini"
          :disabled="single"
          @click="handleUpdate"
          v-hasPermi="['order:order:edit']"
          >修改</el-button
        >
      </el-col>
      <el-col :span="1.5">
        <el-button
          type="danger"
          plain
          icon="el-icon-delete"
          size="mini"
          :disabled="multiple"
          @click="handleDelete"
          v-hasPermi="['order:order:remove']"
          >删除</el-button
        >
      </el-col>
      <el-col :span="1.5">
        <el-button
          type="warning"
          plain
          icon="el-icon-download"
          size="mini"
          @click="handleExport"
          v-hasPermi="['order:order:export']"
          >导出</el-button
        >
      </el-col>
      <right-toolbar
        :showSearch.sync="showSearch"
        @queryTable="getList"
      ></right-toolbar>
    </el-row>

    <el-table
      v-loading="loading"
      :data="orderList"
      @selection-change="handleSelectionChange"
    >
      <el-table-column type="selection" width="55" align="center" />
      <el-table-column label="订单编号" align="center" prop="id" />
      <el-table-column
        label="订单号"
        align="center"
        prop="number"
        width="200"
      />
      <el-table-column label="门店" align="center" prop="shopId">
        <template slot-scope="scope">
          <el-popover
            placement="right"
            title="门店信息"
            width="300"
            trigger="click"
          >
            <div v-if="scope.row.shop != null">
              <div><span>门店id：</span>{{ scope.row.shop.shopId }}</div>
              <div><span>门店名称：</span>{{ scope.row.shop.shopName }}</div>
              <div>
                <span>门店地址：</span>{{ scope.row.shop.shopArea }}:{{
                  scope.row.shop.shopAddress
                }}
              </div>
              <div><span>门店负责人：</span>{{ scope.row.shop.perName }}</div>
              <div><span>门店电话：</span>{{ scope.row.shop.perPhone }}</div>

              <div><span>主营业务：</span>{{ scope.row.shop.shopIntro }}</div>
              <div><span>门店营业时间：</span>{{ scope.row.shop.week }}</div>
            </div>
            <div v-if="scope.row.shop == null">暂无数据</div>
            <div type="primary" class="hidden" slot="reference">
              {{ scope.row.shop ? scope.row.shop.shopName : scope.row.shopId }}
            </div>
          </el-popover>
        </template>
      </el-table-column>
      <el-table-column label="车辆" align="center" prop="carId">
        <template slot-scope="scope">
          <el-popover
            placement="right"
            title="车辆信息"
            width="300"
            trigger="click"
          >
            <div v-if="scope.row.car == null">暂无数据</div>
            <div v-else>
              <div><span>车辆id：</span>{{ scope.row.car.id }}</div>
              <div>
                <span>车辆名称：</span
                >{{ scope.row.car.name ? scope.row.car.name : "未定义" }}
              </div>
              <div><span>车牌号：</span>{{ scope.row.car.carNumber }}</div>
            </div>
            <div type="primary" class="hidden" slot="reference">
              {{ scope.row.car ? scope.row.car.photo : scope.row.carId }}
            </div>
          </el-popover>
        </template>
      </el-table-column>
      <el-table-column label="用户" align="center" prop="userId">
        <template slot-scope="scope">
          <el-popover
            placement="right"
            title="用户信息"
            width="300"
            trigger="click"
          >
            <div v-if="scope.row.user == null">暂无数据</div>
            <div v-else>
              <div><span>用户id：</span>{{ scope.row.user.id }}</div>
              <div>
                <span>用户昵称：</span
                >{{
                  scope.row.user.sysUser
                    ? scope.row.user.sysUser.nickName + scope.row.userId
                    : scope.row.userId
                }}
              </div>
              <div><span>角色id：</span>{{ scope.row.user.sysUserid }}</div>
              <div><span>余额：</span>{{ scope.row.user.money }}</div>
              <div><span>备注：</span>{{ scope.row.user.remark }}</div>
            </div>
            <div type="primary" class="hidden" slot="reference">
              {{ scope.row.user ? scope.row.user.id : scope.row.userId }}
            </div>
          </el-popover>
        </template>
      </el-table-column>
      <el-table-column label="服务类别" align="center" prop="serviceId">
        <template slot-scope="scope">
          <dict-tag
            :options="dict.type.service_type"
            :value="scope.row.serviceId"
          />
        </template>
      </el-table-column>
      <el-table-column label="服务项目" align="center" prop="serviceListId">
        <template slot-scope="scope">
          <div v-if="scope.row.serviceList != null">
            <el-popover
              placement="right"
              :title="'服务项目(' + item.name + ')'"
              width="300"
              trigger="click"
              v-for="(item, index) in scope.row.serviceList"
              v-bind:key="index"
            >
              <div>
                <div><span>服务项目id：</span>{{ item.id }}</div>
                <div><span>服务名称：</span>{{ item.name }}</div>
                <div><span>介绍：</span>{{ item.intro }}</div>
                <div><span>原价：</span>{{ item.oldPrice }}</div>
                <div><span>现价：</span>{{ item.newPrice }}</div>
                <div><span>创建时间：</span>{{ item.createTime }}</div>
                <div><span>备注：</span>{{ item.remark?item.remark:'暂无' }}</div>
              </div>
              <div type="primary" class="hidden" slot="reference">
                {{ item.name ? item.name : "空值" }}
              </div>
            </el-popover>
          </div>
          <div v-else>暂无数据</div>
        </template>
      </el-table-column>
      <el-table-column label="优惠卷" align="center" prop="couponId">
        <template slot-scope="scope">
          <el-popover
            placement="right"
            title="优惠卷信息"
            width="300"
            trigger="click"
          >
            <div><span>优惠卷id：</span>{{ scope.row.couponId }}</div>
            <div type="primary" class="hidden" slot="reference">
              {{ scope.row.couponId ? scope.row.couponId : "空值" }}
            </div>
          </el-popover>
        </template>
      </el-table-column>
      <el-table-column label="备注" align="center" prop="remark" />
      <el-table-column label="总价" align="center" prop="totalPrice" />
      <el-table-column label="实付价格" align="center" prop="realPrice" />
      <el-table-column label="核销码" align="center" prop="verificationCode" />
      <el-table-column
        label="核销时间"
        align="center"
        prop="subscribeTime"
        width="180"
      >
        <template slot-scope="scope">
          <el-tag
            v-if="
              scope.row.verificationTime == null ||
              scope.row.verificationTime == ''
            "
            >未核销</el-tag
          >
          <span v-else>{{ scope.row.verificationTime }}</span>
        </template>
      </el-table-column>
      <el-table-column
        label="预约时间"
        align="center"
        prop="subscribeTime"
        width="180"
      />
      <el-table-column label="状态" align="center" prop="state">
        <template slot-scope="scope">
          <dict-tag
            :options="dict.type.order_status"
            :value="scope.row.state"
          />
        </template>
      </el-table-column>
      <el-table-column
        label="操作"
        align="center"
        class-name="small-padding fixed-width"
      >
        <template slot-scope="scope">
          <el-button
            size="mini"
            type="text"
            icon="el-icon-edit"
            @click="handleUpdate(scope.row)"
            v-hasPermi="['order:order:edit']"
            >修改</el-button
          >
          <el-button
            size="mini"
            type="text"
            icon="el-icon-delete"
            @click="handleDelete(scope.row)"
            v-hasPermi="['order:order:remove']"
            >删除</el-button
          >
        </template>
      </el-table-column>
    </el-table>

    <pagination
      v-show="total > 0"
      :total="total"
      :page.sync="queryParams.pageNum"
      :limit.sync="queryParams.pageSize"
      @pagination="getList"
    />

    <!-- 添加或修改订单对话框 -->
    <el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
      <el-form ref="form" :model="form" :rules="rules" label-width="80px">
        <el-form-item label="订单号" prop="number">
          <el-input v-model="form.number" placeholder="请输入订单号" />
        </el-form-item>
        <el-form-item label="门店" prop="shopId">
          <el-select
            v-model="form.shopId"
            placeholder="请选择门店id"
            @change="getServiceListByShopId(form.shopId)"
          >
            <el-option
              v-for="dict in shopList"
              :key="dict.shopId"
              :label="dict.shopName"
              :value="dict.shopId"
            />
          </el-select>
        </el-form-item>
        <el-form-item label="车辆" prop="carId">
          <el-select v-model="form.carId" placeholder="请选择车辆id">
            <el-option
              v-for="dict in carList"
              :key="dict.id"
              :label="dict.carNumber ? dict.carNumber : dict.id"
              :value="dict.id"
            ></el-option>
          </el-select>
        </el-form-item>
        <el-form-item label="用户" prop="userId">
          <el-select v-model="form.userId" placeholder="请选择用户id">
            <el-option
              v-for="dict in userList"
              :key="dict.id"
              :label="dict.sysUser ? dict.sysUser.nickName + dict.id : dict.id"
              :value="dict.id"
            ></el-option>
          </el-select>
        </el-form-item>
        <el-form-item label="服务类别" prop="serviceId">
          <el-select v-model="form.serviceId" placeholder="请选择服务类别id">
            <el-option
              v-for="dict in dict.type.service_type"
              :key="dict.value"
              :label="dict.label"
              :value="parseInt(dict.value)"
            />
          </el-select>
        </el-form-item>
        <el-form-item label="优惠卷" prop="couponId">
          <el-select
            v-model="form.couponId"
            placeholder="请选择优惠卷id"
            clearable
          >
            <el-option
              v-for="dict in couponList"
              :key="dict.id"
              :label="dict.name"
              :value="dict.id"
            ></el-option>
          </el-select>
        </el-form-item>
        <el-form-item label="备注" prop="remark">
          <el-input
            v-model="form.remark"
            type="textarea"
            placeholder="请输入内容"
          />
        </el-form-item>
        <el-form-item label="服务项目" prop="serviceList">
          <div
            v-if="
              serviceList != null && serviceList != [] && serviceList.length > 0
            "
          >
            <el-checkbox-group
              v-model="form.serviceIds"
              :min="1"
              :max="4"
              @change="form.isServiceChanged = true"
            >
              <el-checkbox
                v-for="item in serviceList"
                :label="item.id"
                :key="item.id"
                >{{ item.name }}</el-checkbox
              >
            </el-checkbox-group>
          </div>
          <div v-else>暂无服务项目</div>
        </el-form-item>
        <el-form-item label="总价" prop="totalPrice">
          <el-input v-model="form.totalPrice" placeholder="请输入总价" />
        </el-form-item>
        <el-form-item label="实付价格" prop="realPrice">
          <el-input v-model="form.realPrice" placeholder="请输入实付价格" />
        </el-form-item>
        <el-form-item label="核销码" prop="verificationCode">
          <el-input
            v-model="form.verificationCode"
            placeholder="请输入核销码"
          />
        </el-form-item>
        <el-form-item label="核销时间" prop="verificationTime">
          <el-date-picker
            clearable
            v-model="form.verificationTime"
            type="date"
            value-format="yyyy-MM-dd hh:mm:ss"
            placeholder="请选择核销时间"
          >
          </el-date-picker>
        </el-form-item>
        <el-form-item label="预约时间" prop="subscribeTime">
          <el-date-picker
            clearable
            v-model="form.subscribeTime"
            type="date"
            value-format="yyyy-MM-dd hh:mm:ss"
            placeholder="请选择预约时间"
          >
          </el-date-picker>
        </el-form-item>
        <el-form-item label="状态" prop="state">
          <el-select v-model="form.state" placeholder="请选择状态">
            <el-option
              v-for="dict in dict.type.order_status"
              :key="dict.value"
              :label="dict.label"
              :value="parseInt(dict.value)"
            ></el-option>
          </el-select>
        </el-form-item>
      </el-form>
      <div slot="footer" class="dialog-footer">
        <el-button type="primary" @click="submitForm">确 定</el-button>
        <el-button @click="cancel">取 消</el-button>
      </div>
    </el-dialog>
  </div>
</template>

<script>
import {
  listOrder,
  getOrder,
  delOrder,
  addOrder,
  updateOrder,
  listCar,
} from "@/api/order/order";
import { listShop } from "@/api/shop/shop";
import { listUserr } from "@/api/user/userr";
import { listCoupon } from "@/api/shop/coupon";
import { listServicesByShopId } from "@/api/service/service";
export default {
  name: "Order",
  dicts: ["order_status", "sys_user_sex", "service_type"],
  data() {
    return {
      // 遮罩层
      loading: true,
      // 选中数组
      ids: [],
      // 非单个禁用
      single: true,
      // 非多个禁用
      multiple: true,
      // 显示搜索条件
      showSearch: true,
      // 总条数
      total: 0,
      // 订单表格数据
      orderList: [],
      // 弹出层标题
      title: "",
      // 是否显示弹出层
      open: false,
      // 状态时间范围
      daterangeVerificationTime: [],
      // 状态时间范围
      daterangeSubscribeTime: [],
      // 状态时间范围
      daterangeCreateTime: [],
      // 价格范围
      price: {
        beginTotalPrice: null,
        endTotalPrice: null,
        beginRealPrice: null,
        endRealPrice: null,
      },
      // 查询参数
      queryParams: {
        pageNum: 1,
        pageSize: 10,
        number: null,
        shopId: null,
        carId: null,
        userId: null,
        serviceId: null,
        totalPrice: null,
        realPrice: null,
        verificationCode: null,
        verificationTime: null,
        subscribeTime: null,
        createTime: null,
        state: null,
      },
      // 表单参数
      form: {},
      // 表单校验
      rules: {
        shopId: [
          { required: true, message: "门店id不能为空", trigger: "change" },
        ],
        carId: [
          { required: true, message: "车辆id不能为空", trigger: "change" },
        ],
        userId: [
          { required: true, message: "用户id不能为空", trigger: "change" },
        ],
        serviceId: [
          { required: true, message: "服务类别id不能为空", trigger: "change" },
        ],
        totalPrice: [
          { required: true, message: "总价不能为空", trigger: "blur" },
        ],
        realPrice: [
          { required: true, message: "实付价格不能为空", trigger: "blur" },
        ],
        state: [{ required: true, message: "状态不能为空", trigger: "change" }],
      },

      // >>>>>>>>>>>>>>>
      otherQueryParams: {
        pageNum: 1,
        pageSize: 99999,
      },
      shopList: [],
      carList: [],
      userList: [],
      couponList: [],
      serviceList: [],

      // <<<<<<<<<<<<<<<<
    };
  },
  created() {
    this.get();
  },
  methods: {
    get() {
      this.getList();
      this.getOtherList();
    },
    getOtherList() {
      this.getShopList();
      this.getCouponList();
      this.getUserList();
      this.getCarList();
    },
    /** 查询订单列表 */
    getList() {
      this.loading = true;
      this.queryParams.params = {};
      if (
        null != this.daterangeVerificationTime &&
        "" != this.daterangeVerificationTime
      ) {
        this.queryParams.params["beginVerificationTime"] =
          this.daterangeVerificationTime[0];
        this.queryParams.params["endVerificationTime"] =
          this.daterangeVerificationTime[1];
      }
      if (
        null != this.daterangeSubscribeTime &&
        "" != this.daterangeSubscribeTime
      ) {
        this.queryParams.params["beginSubscribeTime"] =
          this.daterangeSubscribeTime[0];
        this.queryParams.params["endSubscribeTime"] =
          this.daterangeSubscribeTime[1];
      }
      if (null != this.daterangeCreateTime && "" != this.daterangeCreateTime) {
        this.queryParams.params["beginCreateTime"] =
          this.daterangeCreateTime[0];
        this.queryParams.params["endCreateTime"] = this.daterangeCreateTime[1];
      }

      // 添加价格
      if (
        this.price.beginTotalPrice != null &&
        this.price.beginTotalPrice != ""
      ) {
        this.queryParams.params["beginTotalPrice"] = this.price.beginTotalPrice;
      }
      if (this.price.endTotalPrice != null && this.price.endTotalPrice != "") {
        this.queryParams.params["endTotalPrice"] = this.price.endTotalPrice;
      }
      if (
        this.price.beginRealPrice != null &&
        this.price.beginRealPrice != ""
      ) {
        this.queryParams.params["beginRealPrice"] = this.price.beginRealPrice;
      }
      if (this.price.endRealPrice != null && this.price.endRealPrice != "") {
        this.queryParams.params["endRealPrice"] = this.price.endRealPrice;
      }

      listOrder(this.queryParams).then((response) => {
        this.orderList = response.rows;
        this.total = response.total;
        this.loading = false;
      });
    },
    // 获取门店列表
    getShopList() {
      listShop().then((response) => {
        this.shopList = response.rows;
      });
    },
    getCouponList() {
      listCoupon(this.otherQueryParams).then((response) => {
        this.couponList = response.rows;
      });
    },
    getUserList() {
      listUserr().then((response) => {
        this.userList = response.rows;
      });
    },
    getCarList() {
      listCar().then((response) => {
        this.carList = response.rows;
      });
    },
    getServiceListByShopId(shopId) {
      listServicesByShopId(shopId).then((response) => {
        this.serviceList = response.data;
        console.log(this.serviceList);
      });
    },

    // 取消按钮
    cancel() {
      this.open = false;
      this.reset();
    },
    // 表单重置
    reset() {
      this.form = {
        id: null,
        number: null,
        shopId: null,
        carId: null,
        userId: null,
        serviceId: null,
        couponId: null,
        remark: null,
        totalPrice: null,
        realPrice: null,
        params: {
          beginTotalPrice: null,
          endTotalPrice: null,
        },
        verificationCode: null,
        verificationTime: null,
        subscribeTime: null,
        createTime: null,
        state: null,
      };
      this.resetForm("form");
      this.serviceList = [];
    },
    /** 搜索按钮操作 */
    handleQuery() {
      this.queryParams.pageNum = 1;
      this.getList();
    },
    /** 重置按钮操作 */
    resetQuery() {
      this.daterangeVerificationTime = [];
      this.daterangeSubscribeTime = [];
      this.daterangeCreateTime = [];
      this.resetForm("queryForm");
      this.handleQuery();
    },
    // 多选框选中数据
    handleSelectionChange(selection) {
      this.ids = selection.map((item) => item.id);
      this.single = selection.length !== 1;
      this.multiple = !selection.length;
    },
    /** 新增按钮操作 */
    handleAdd() {
      this.reset();
      this.open = true;
      this.title = "添加订单";
    },
    /** 修改按钮操作 */
    handleUpdate(row) {
      this.reset();
      const id = row.id || this.ids;
      getOrder(id).then((response) => {
        this.form = response.data;
        this.open = true;
        this.title = "修改订单";
        this.getServiceListByShopId(this.form.shopId);
      });
    },
    /** 提交按钮 */
    submitForm() {
      this.$refs["form"].validate((valid) => {
        if (valid) {
          if (this.form.id != null) {
            updateOrder(this.form).then((response) => {
              this.$modal.msgSuccess("修改成功");
              this.open = false;
              this.getList();
            });
          } else {
            addOrder(this.form).then((response) => {
              this.$modal.msgSuccess("新增成功");
              this.open = false;
              this.getList();
            });
          }
        }
      });
    },
    /** 删除按钮操作 */
    handleDelete(row) {
      const ids = row.id || this.ids;
      this.$modal
        .confirm('是否确认删除订单编号为"' + ids + '"的数据项？')
        .then(function () {
          return delOrder(ids);
        })
        .then(() => {
          this.getList();
          this.$modal.msgSuccess("删除成功");
        })
        .catch(() => {});
    },
    /** 导出按钮操作 */
    handleExport() {
      this.download(
        "order/order/export",
        {
          ...this.queryParams,
        },
        `order_${new Date().getTime()}.xlsx`
      );
    },
  },
};
</script>
<style scoped>
.hidden {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hidden:hover {
  color: rgb(76, 130, 255);
  cursor: pointer;
  text-decoration: underline;
}
.flex {
  display: flex;
  align-items: center;
}
</style>
